home *** CD-ROM | disk | FTP | other *** search
/ Commodore Free 10 / Commodore_Free_Issue_10_2007_Commodore_Computer_Club.d64 / t.iv potrace < prev    next >
Text File  |  2023-02-26  |  8KB  |  294 lines

  1. u    Interview with Peter Selinger
  2.            cotrace creator
  3.     http://potrace.sourceforge.net
  4.  
  5. Q - can you please introduce yourself
  6. to our reader
  7.  
  8. My name is Peter Selinger. I am a
  9. professor of mathematics at Dalhousie
  10. University in Halifax, Canada. I
  11. develop open-source software in my
  12. free time.
  13.  
  14. Q - How did you get involved with
  15. Commodore machines and do you still
  16. actively use Commodore machines
  17.  
  18. My brother had a C-64 when I was 12 or
  19. 13 years old. I spent the next few
  20. years programming it in Basic and
  21. assembler. It was the first and only
  22. Commodore machine I ever used.
  23.  
  24. Q - Can you tell our reader about
  25. Potrace, what it does and how it
  26. differs from similar applications?
  27.  
  28. Potrace is a utility for
  29. raster-to-vector conversion. This
  30. means, it inputs a bitmapped
  31. black-and-white image, such as you
  32. would get from a scanner or digital
  33. camera, and turns it into a scalable
  34. vector image using Bezier curves. The
  35. output can be further processed with a
  36. vector graphics editor such as
  37. Inkscape.
  38.  
  39. There is other software with similar
  40. functionality. Most of it is
  41. commercial. In my opinion, none of it
  42. gives output as nice looking as
  43. Potrace's.
  44.  
  45. Q - What machines and operating
  46. systems does the application run on
  47.  
  48. Potrace was written with portability
  49. in mind, so it can run on virtually
  50. any system that has a C compiler and
  51. some POSIX-like library functions. It
  52. was developed on Linux, and runs on
  53. every flavour of Unix, Windows, and
  54. the Macintosh. Alfred Faust ported it
  55. to the Amiga (OS4) and Matthias
  56. Rustler to AROS, the Amiga Research
  57. Operating System (which runs on Intel
  58. hardware)
  59.  
  60. Q - Any possibility of a GEOS or
  61. Wheels version for Commodore 64 owners
  62.  
  63. The source code is available; with a C
  64. compiler and some patience, I don't
  65. see why someone could not compile it
  66. for the Commodore 64. Of course, some
  67. expanded RAM will be necessary, as the
  68. Potrace source code runs to about 260
  69. kilobytes, not including shared
  70. libraries.
  71.  
  72. Q - I notice the software is Command
  73. line only but other users have added
  74. GUI versions, was your intention to
  75. produce just a Command line version
  76.  
  77. Yes. Potrace adheres to the old Unix
  78. philosophy of "doing only one thing,
  79. and doing it well". This is why I call
  80. it a "utility" and not an
  81. "application". It has no fancy user
  82. interface or add-on functionality. It
  83. can be used in batch mode or scripts.
  84. Potrace also can only read a handful
  85. of image formats. There are other,
  86. much better programs for converting
  87. one image format to another.
  88.  
  89. Q - Can you tell our reader who
  90. contributed to the project and what
  91. they did
  92.  
  93. Potrace was almost entirely written by
  94. myself. Tor Andersson wrote a backend
  95. for outputting PDF. Karol Krenski
  96. contributed the logo, which he of
  97. course created using Potrace. Many
  98. people have helped with finding and
  99. reporting bugs.
  100.  
  101. Q - Our reader may.not be aware of the
  102. "GNU General Public License". Can you
  103. explain this does it mean the software
  104. is free to use.
  105.  
  106. For a full explanation of the license,
  107. read the file COPYING that is
  108. distributed with Potrace. The short
  109. answer is: yes, under the GNU General
  110. Public License (GPL), you are free to
  111. use the software.
  112.  
  113. However, much more is true: you are
  114. also free to modify, recompile, and
  115. redistribute it. The primary
  116. restriction is that when you
  117. redistribute (modified or unmodified)
  118. versions of Potrace, you must again do
  119. so under the terms of the GPL. This
  120. means that nobody can integrate
  121. Potrace, or anything derived from it,
  122. into a non-GPL program without my
  123. permission.
  124.  
  125. Please note that "free" in this
  126. context refers to freedom, not to
  127. price. There is lots of software that
  128. is offered without payment, but that
  129. does not give you any freedom. GPL
  130. software is not like that.
  131.  
  132. Q - What other software have you
  133. written, and are you working on any
  134. other projects at the moment I have
  135. written lots of software. The most
  136. popular items besides Potrace are:
  137.  
  138. -Ccrypt, a simple and secure
  139. command-line encryption program
  140. (ccrypt.sourceforge.net)
  141.  
  142. -Upprint, a printer frontend for n-up
  143. and double sided printing. N-up
  144. printing means putting multiple pages
  145. on a single sheet of paper at reduced
  146. size. Most off-the-shelf software does
  147. this very badly, by leaving huge
  148. margins and making the text way too
  149. small.
  150.  
  151. Q - I like the Potrace mascot can you
  152. tell our reader a little about it.
  153.  
  154. The mascot was designed by Karol
  155. Krenski, a Polish artist who was an
  156. early and enthusiastic user of
  157. Potrace. You can see some more of his
  158. works at
  159. www.sgsp.edu.pl/inne/galerie/krenski/k
  160. renski.php
  161.  
  162. Q - what problems did you have
  163. creating the software, was all the
  164. code created by yourself or did you
  165. manage to find something similar and
  166. adapt it to your needs
  167.  
  168. The largest challenge in writing this
  169. software was designing the Potrace
  170. tracing algorithm. This is really the
  171. heart of the software. I wrote all of
  172. it myself, except for the PDF backend.
  173.  
  174. Q - I see this is a FAQ already but
  175. for our reader who desnt read the
  176. FAQ_s -Can Potrace scan and convert
  177. Colour files as well as mono images,
  178. are there plans for the software to
  179. convert colour images
  180.  
  181. No, it cannot convert colour images.
  182. Perhaps I will add this ability in the
  183. future, but I do not currently have a
  184. concrete plan to do so. There is some
  185. software, such as Inkscape
  186. (www.inkscape.org), which is able to
  187. use Potrace on color images,
  188. essentially by decomposing the image
  189. into a series of bitonal images,
  190. tracing each of them separately, and
  191. then putting the results together
  192. again.
  193.  
  194. Q - Does the software work equally
  195. well on text or complex images
  196.  
  197. The best results are obtained on
  198. handwriting and hand-drawn images such
  199. as cartoons. Potrace also works
  200. reasonably well on text, provided that
  201. the characters have been rendered at a
  202. high enough resolution. Complex images
  203. are no problem, because Potrace is
  204. quite fast even on most large images.
  205. One thing that Potrace does not work
  206. too well on is noisy images. It is
  207. important to prepare the input image
  208. carefully to get best tracing results.
  209. I wrote another program called
  210. "mkbitmap" that can help doing this.
  211. It is distributed together with
  212. Potrace.
  213.  
  214. Q - What is the current version of the
  215. software and are there further
  216. development charges planned
  217.  
  218. The current version is 1.8. Potrace is
  219. quite stable at the moment, which
  220. means it works reliably and there is
  221. no need to make lots of changes to
  222. the software.
  223.  
  224. Q - How can our reader help with the
  225. project
  226.  
  227. Use Potrace and tell others about it!
  228.  
  229. Q - is there a forum for people with
  230. problems using the software, can users
  231. email you directly
  232.  
  233. For problems, users should first check
  234. the Frequently Asked Questions
  235.  
  236. http://potrace.sourceforge.net/faq.htm
  237. l
  238.  
  239. and then use the Forum and
  240.  
  241. http://sourceforge.net/projects/potrac
  242. e
  243.  
  244.  Q - what are the main problems
  245. converting the software to other
  246. platforms, can you give a quick how to
  247. on conversion to our reader, is there
  248. any help on converting lets say an
  249. Amiga application to linux or even the
  250. PC,
  251.  
  252. My main advice is to write the
  253. software portably in the first place.
  254. Fortunately for me, within the Unix
  255. community, there are some
  256. well-established standards for the
  257. programming environment that any Unix
  258. system should provide. One such set of
  259. standards is known as POSIX. Since
  260. POSIX environments are also available
  261. for Windows and the Macintosh, porting
  262. to those platforms was for the most
  263. part not very difficult.
  264.  
  265. Q - I presume that command line
  266. versions are quick to convert to other
  267. platforms is this why you only
  268. personally produced the command line
  269. version of Potrace
  270.  
  271. No, portability was not a
  272. consideration in my decision to
  273. produce a command-line tool. Actually,
  274. I use the command line a lot. If I
  275. need to convert 200 images, I would
  276. much rather write something like
  277. "potrace *.pnm" than going through
  278. some graphical user interface where I
  279. have to manually click, drag, and drop
  280. 200 files. Tracing of images is not
  281. fundamentally an interactive process.
  282. Pretty much there is an input and an
  283. output, and a few parameters that one
  284. can tweak along the way. So I never
  285. saw the need for a graphical
  286. interface. However, others have
  287. written such interfaces for Potrace.
  288.  
  289.  See
  290. http://potrace.sourceforge.net/#other
  291.  
  292.  
  293. ...end...
  294.  
  295.